import electron from 'vite-plugin-electron/simple'

export default function createElectron() {
  return electron({
    main: {
      // `build.lib.entry的快捷方式`
      entry: 'electron/main.ts',
    },
    preload: {
      //`build.rollupOptions.input的快捷方式`
      input: 'electron/preload.ts',
    },
  })
}